﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<EAILogWebSite.Table_Log>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Test
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Test</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Id
            </th>
            <th>
                ESBHdVer
            </th>
            <th>
                SrvDate
            </th>
            <th>
                SrvTime
            </th>
            <th>
                SenderID
            </th>
            <th>
                ReceiverID
            </th>
            <th>
                SrvOpName
            </th>
            <th>
                SrvOpVer
            </th>
            <th>
                MsgID
            </th>
            <th>
                CorrID
            </th>
            <th>
                ESBRspCode
            </th>
            <th>
                ESBRspDec
            </th>
            <th>
                ResField1
            </th>
            <th>
                ResField2
            </th>
            <th>
                ResField3
            </th>
            <th>
                ResField4
            </th>
            <th>
                ResField5
            </th>
            <th>
                MsgBody
            </th>
            <th>
                SourceXML
            </th>
            <th>
                MsgType
            </th>
            <th>
                LogDateTime
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.Id })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.Id })%>
            </td>
            <td>
                <%: item.Id %>
            </td>
            <td>
                <%: item.ESBHdVer %>
            </td>
            <td>
                <%: item.SrvDate %>
            </td>
            <td>
                <%: item.SrvTime %>
            </td>
            <td>
                <%: item.SenderID %>
            </td>
            <td>
                <%: item.ReceiverID %>
            </td>
            <td>
                <%: item.SrvOpName %>
            </td>
            <td>
                <%: item.SrvOpVer %>
            </td>
            <td>
                <%: item.MsgID %>
            </td>
            <td>
                <%: item.CorrID %>
            </td>
            <td>
                <%: item.ESBRspCode %>
            </td>
            <td>
                <%: item.ESBRspDec %>
            </td>
            <td>
                <%: item.ResField1 %>
            </td>
            <td>
                <%: item.ResField2 %>
            </td>
            <td>
                <%: item.ResField3 %>
            </td>
            <td>
                <%: item.ResField4 %>
            </td>
            <td>
                <%: item.ResField5 %>
            </td>
            <td>
                <%: item.MsgBody %>
            </td>
            <td>
                <%: item.SourceXML %>
            </td>
            <td>
                <%: item.MsgType %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.LogDateTime) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

